// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeResourceByTagsResponse.h"

namespace aliyun { namespace Ecs {

DescribeResourceByTagsResponse::DescribeResourceByTagsResponse() {
}

const string& DescribeResourceByTagsResponse::Resource::GetResourceId(void) const {
  return ResourceId_;
}

const string& DescribeResourceByTagsResponse::Resource::GetResourceType(void) const {
  return ResourceType_;
}

const string& DescribeResourceByTagsResponse::Resource::GetRegionId(void) const {
  return RegionId_;
}

const std::vector<DescribeResourceByTagsResponse::Resource>& DescribeResourceByTagsResponse::GetResources(void) const {
  return Resources_;
}

int DescribeResourceByTagsResponse::GetPageSize(void) const {
  return PageSize_;
}

int DescribeResourceByTagsResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeResourceByTagsResponse::GetTotalCount(void) const {
  return TotalCount_;
}

const char* DescribeResourceByTagsResponse::BaseKey(void) {
  return "DescribeResourceByTagsResponse";
}

void DescribeResourceByTagsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Resources__length = 0;
  UnmarshallerInt(Resources__length, response_map, "DescribeResourceByTagsResponse.Resources.Length");
  if(Resources__length >= 0) {
    Resources_.resize(Resources__length);
    for(int i1 = 0; i1 < Resources__length; i1++) {
      UnmarshallerString(Resources_[i1].ResourceId_, response_map, "DescribeResourceByTagsResponse.Resources["+string_ValueOfInt(i1)+"].ResourceId");
      UnmarshallerString(Resources_[i1].ResourceType_, response_map, "DescribeResourceByTagsResponse.Resources["+string_ValueOfInt(i1)+"].ResourceType");
      UnmarshallerString(Resources_[i1].RegionId_, response_map, "DescribeResourceByTagsResponse.Resources["+string_ValueOfInt(i1)+"].RegionId");
    } // for(int i1 = 0; i1 < Resources__length; i1++) {
  } // if(Resources__length >= 0) {

  UnmarshallerInt(PageSize_, response_map, "DescribeResourceByTagsResponse.PageSize");
  UnmarshallerInt(PageNumber_, response_map, "DescribeResourceByTagsResponse.PageNumber");
  UnmarshallerInt(TotalCount_, response_map, "DescribeResourceByTagsResponse.TotalCount");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
